home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
ask_dos.zip
/
TRY.BAT
< prev
Wrap
DOS Batch File
|
1994-03-05
|
867b
|
36 lines
@echo off
cls
:
: This batch file demonstrates ASK.COM
:
: Responding YES to "ask" will return a code of 0 to DOS
: Responding NO to "ask" will return a code of 1 to DOS
: The Ctrl-C key combination will return a value of 2 to DOS
:
: Refer to file ASK.DOC and ASK.ASM for details as to the methods
: used in coding of this program. I welcome all thoughts, or
: questions on programming. Gossip, news, tales etc., are also
: welcome. Feel free to write!
:
: Patrick Whittle Phone: (519) 945-7596
: 365 Watson Ave.
: Windsor, Ontario
: Canada N8S 3S3
ASK Do you wish to run Microsoft Windows?
IF errorlevel == 2 goto CTRL_C
IF errorlevel == 1 goto RETURN
echo Microsoft Windows!
goto END
:CTRL_C
echo errorlevel 2. . .
goto END
:RETURN
echo Returned to operating system!
:END
echo.